package com.oig.sys.msg.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.util.Date;

@Schema
@Data
public class MqMsgVo {


	@Schema(description = "id")
	private Integer id;

	@Schema(description = "所属系统id")
	private Integer systemId;
	@Schema(description = "所属系统名称")
	private String systemName;

	@Schema(description = "主业务类型")
	private String businessType;

	@Schema(description = "关联单据类型")
	private String relationType;

	@Schema(description = "关联单据id")
	private String relationId;

	@Schema(description = "消息内容")
	private String msgContent;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@Schema(description = "发送标记 0-未发送 1-已发送")
	private String sendFlag;

	@Schema(description = "发送次数")
	private Integer sendNum;
	@Schema(description = "发送时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date sendTime;

	private String rtnFlag;

	private String rtnContent;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date rtnTime;

	private Integer version;

	@Schema(description = "所属租户id")
	private Integer tenantId;
	@Schema(description = "所属租户名称")
	private String tenantName;
}
